<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>处理流程</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
</head>
<style type="text/css">
.aui-content {
    background: #ffffff;
    overflow: hidden;
    padding: 15px;
}
</style>
<body style="background-color:#FFFFFF;">
	<script id="bugFlow-template" type="text/x-dot-template">
		{{ for(var i=0,j=1; i<=it.length-1; i++,j++) { }}
			<li>
				<i class="aui-iconfont aui-icon-mark aui-bg-warning"></i>
				<div class="aui-timeline-item">
					<div class="aui-timeline-body">
						{{=it[i].procoper}}
						<div style="width:100%;height:auto;text-align:center">
						{{? it[i].stepid == 'CREATE' }}
							建单
						{{?}}
						{{? it[i].stepid == 'ACCEPT' }}
							接单
						{{?}}
						{{? it[i].stepid == 'REVERT' }}
							回单
						{{?}}
						{{? it[i].stepid == 'COORDINATE' }}
							协调上站
						{{?}}
						{{? it[i].stepid == 'ISPROMPT' }}
							是否及时上站
						{{?}}
						{{? it[i].stepid == 'ISAGREE' }}
							是否同意
						{{?}}
						{{? it.stepid == 'PHONESIGN' }}
							手机签到
						{{?}}
						{{? it[i].stepid == 'SENISPROMPT' }}
							最终确认
						{{?}}
            {{? it[i].stepid == 'LEAVECONFIRM' }}
							离站确认
						{{?}}
						（{{=it[i].procdesc!= null ? it[i].procdesc:""}}）
						</div>
					</div>
					<div class="aui-timeline-footer" style="text-align:right;">{{=it[i].proctime}}</div>
				</div>
			</li>
		{{ } }}
	</script>
    <div class="aui-content">
        <ul class="aui-timeline" id="standBillBugFlowDetail">

        </ul>
    </div>
</body>
<script type="text/javascript" src="../../script/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/doT.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/debug.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/client.api.js"></script>
<script type="text/javascript" src="../../script/aui-alert.js"></script>
<script type="text/javascript">
//	var actionJsonArr = new Array();
//  function openActionDetail(index) {
//      var billSn = api.pageParam.billSn;
//      var billId = api.pageParam.billId;
//      var stationId = api.pageParam.stationId;
//      var jsonStr = "[" + $api.jsonToStr(actionJsonArr[index - 1]) + "]";
//      api.openWin({
//          name : 'mainActionDetailWin',
//          url : 'mainActionDetailWin.html',
//          opaque : true,
//          bounces : false,
//          pageParam : {
//              billSn : billSn,
//              billId : billId,
//              stationId : stationId,
//              actionDetail : jsonStr
//          },
//          vScrollBarEnabled : false
//      });
//  }

    apiready = function() {
        //status bar style
        api.setStatusBarStyle({
            style : 'light'
        });
        //从缓存中获取处理流程信息
        var standBillBugFlowInfo = $api.getStorage("standBillAction");

        if (isExist(standBillBugFlowInfo)) {
        	renderTemp('standBillBugFlowDetail', 'bugFlow-template', standBillBugFlowInfo);
            api.parseTapmode();
        }else{
        	api.toast({
                msg : '暂无处理流程信息',
                location : 'bottom'
            });
        }
    };
</script>
</html>
